AnnotationTarget

enum AnnotationTarget : Enum<AnnotationTarget>

Contains the list of code elements which are the possible annotation targets

Entries

TYPEALIAS
Link copied to clipboard
Common

Type alias

FILE
Link copied to clipboard
Common

File

EXPRESSION
Link copied to clipboard
Common

Any expression

TYPE
Link copied to clipboard
Common

Type usage

PROPERTY_SETTER
Link copied to clipboard
Common

Property setter only

PROPERTY_GETTER
Link copied to clipboard
Common

Property getter only

FUNCTION
Link copied to clipboard
Common

Function (constructors are not included)

CONSTRUCTOR
Link copied to clipboard
Common

Constructor only (primary or secondary)

VALUE_PARAMETER
Link copied to clipboard
Common

Value parameter of a function or a constructor

LOCAL_VARIABLE
Link copied to clipboard
Common

Local variable

FIELD
Link copied to clipboard
Common

Field, including property's backing field

PROPERTY
Link copied to clipboard
Common

Property

TYPE_PARAMETER
Link copied to clipboard
Common

Generic type parameter (unsupported yet)

ANNOTATION_CLASS
Link copied to clipboard
Common

Annotation class only

CLASS
Link copied to clipboard
Common

Class, interface or object, annotation class is also included

Properties

name
Link copied to clipboard
Common
val name: String
ordinal
Link copied to clipboard
Common
val ordinal: Int